package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假记录对象 leave
 * 
 * @author 503
 * @date 2021-05-04
 */
public class Leave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long leaveId;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Long workerId;

    /** 请假时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveTime;

    /** 请假原因 */
    @Excel(name = "请假原因")
    private String leaveCause;

    /** 请假时长 */
    @Excel(name = "请假时长")
    private Long leaveDuration;

    public void setLeaveId(Long leaveId) 
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() 
    {
        return leaveId;
    }
    public void setWorkerId(Long workerId) 
    {
        this.workerId = workerId;
    }

    public Long getWorkerId() 
    {
        return workerId;
    }
    public void setLeaveTime(Date leaveTime) 
    {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() 
    {
        return leaveTime;
    }
    public void setLeaveCause(String leaveCause) 
    {
        this.leaveCause = leaveCause;
    }

    public String getLeaveCause() 
    {
        return leaveCause;
    }
    public void setLeaveDuration(Long leaveDuration) 
    {
        this.leaveDuration = leaveDuration;
    }

    public Long getLeaveDuration() 
    {
        return leaveDuration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leaveId", getLeaveId())
            .append("workerId", getWorkerId())
            .append("leaveTime", getLeaveTime())
            .append("leaveCause", getLeaveCause())
            .append("leaveDuration", getLeaveDuration())
            .toString();
    }
}
